home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / pwd.h < prev    next >
C/C++ Source or Header  |  1994-10-03  |  922b  |  36 lines

  1. #ifndef PWD_H
  2. #define PWD_H \
  3.        "$Id: pwd.h,v 4.1 1994/10/03 20:52:20 ppessi Exp $"
  4. /*
  5.  *    Definitions of uid_t and passwd structure for 32 bit C compilers
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. #ifndef SYS_TYPES_H
  13. #include <sys/types.h>
  14. #endif
  15.  
  16. /* The passwd structure */
  17. struct passwd
  18. {
  19.   char  *pw_name;               /* Username */
  20.   char  *pw_passwd;             /* Encrypted password */
  21.   uid_t  pw_uid;                /* User ID */
  22.   gid_t  pw_gid;                /* Group ID */
  23.   char  *pw_gecos;        /* Real name etc */
  24.   char  *pw_dir;                /* Home directory */
  25.   char  *pw_shell;              /* Shell */
  26. };
  27.  
  28. struct passwd *getpwuid(uid_t uid);
  29. struct passwd *getpwnam(const char *name);
  30.  
  31. void setpwent(void);
  32. struct passwd *getpwent(void);
  33. void endpwent(void);
  34.  
  35. #endif /* PWD_H */
  36.